package com.zhongjinkang.rhythm.Utils

import android.content.Context
import android.content.SharedPreferences
import okhttp3.internal.Internal.instance


open class SP {

    private lateinit var sp:SharedPreferences;
    private lateinit var editor:SharedPreferences.Editor;
    private object instance: SP();

    fun init(context: Context) {
        sp = context.getSharedPreferences("SPHelper", Context.MODE_PRIVATE);
        editor = sp.edit();
    }

    fun getInstance(): SP? {
        return instance
    }

}